LearnPress\Models\CourseModel D

Total Complexity 179
Dependencies 21
Dependents 56
Total lines 1,374
Lines of code 715
Logical lines of code 468
Comment lines 478
Methods 56
Properties 22

Methods 56

Method Rating Maintainability Complexity Lines of code
can_enroll()
C
34 30 83
can_purchase()
B
39 17 66
get_sections_and_items_course_from_db_and_sort()
B
35 13 95
get_final_quiz()
A
48 8 33
find()
S
52 7 26
has_sale_price()
S
54 7 19
get_item_model()
S
51 6 27
save()
S
52 4 25
get_item_model_from_db()
S
57 4 16
get_section_of_item()
S
59 4 14
get_total_user_enrolled_or_purchased()
S
58 3 16
item_types_label()
S
58 3 15
get_permalink()
S
62 3 12
get_first_item_id()
S
64 3 11
get_total_items()
S
64 3 11
get_section_items()
S
64 3 11
get_item_link()
S
56 2 18
__construct()
S
68 3 8
map_to_object()
S
67 3 8
check_user_is_author()
S
66 3 8
count_items()
S
64 3 10
get_sale_price()
S
64 3 10
get_regular_price()
S
65 3 9
get_meta_value_by_key()
S
63 3 10
item_types_support()
S
63 2 11
get_image_url()
S
66 2 9
get_categories()
S
66 2 9
get_tags()
S
66 2 9
is_in_stock()
S
66 2 8
get_price()
S
64 2 10
get_no_enroll_requirement()
S
79 1 3
enable_block_when_finished()
S
78 1 3
is_free()
S
78 1 3
clean_caches()
S
73 1 5
delete()
S
66 1 8
get_id()
S
82 1 3
get_course_from_db()
S
70 1 6
get_title()
S
76 1 4
is_offline()
S
78 1 3
get_author_model()
S
76 1 4
enable_block_when_expire()
S
78 1 3
get_status()
S
82 1 3
get_total_sections()
S
76 1 4
get_duration()
S
79 1 3
get_description()
S
76 1 4
count_students()
S
73 1 5
get_fake_students()
S
79 1 3
get_evaluation_type()
S
79 1 3
get_passing_condition()
S
79 1 3
get_external_link()
S
74 1 5
get_type_repurchase()
S
79 1 3
enable_allow_repurchase()
S
75 1 4
get_sale_end()
S
80 1 3
has_no_enroll_requirement()
S
80 1 3
get_short_description()
S
76 1 4
get_sale_start()
S
80 1 3